package gr.uop.cst.context.adaptation.artifacts.oom;

import gr.uop.cst.context.adaptation.Action;
import gr.uop.cst.context.adaptation.ContextAdaptationGenerator;
import java.lang.reflect.Method;

/**
 *
 * @author Ioannis Bourlakos <mi49@uop.gr>
 */
public class BeforeExecuteMethodAdaptation extends AbstractMethodAdaptation {
    
    public BeforeExecuteMethodAdaptation(Action action, String className, String methodName, String... params) throws ClassNotFoundException, NoSuchFieldException, NoSuchMethodException {
        super(action, className, methodName, params);
    }
    
    public BeforeExecuteMethodAdaptation(Action action, Method m) {
        super(action,m);
    }
    
    @Override
    public void accept(ContextAdaptationGenerator cag) {
        cag.visit(this);
    }
    
}
